package com.enjoy.rpc.sms;

import com.enjoy.rpc.remote.SendSms;
import com.enjoy.rpc.remote.vo.UserInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SendSmsImpl implements SendSms {

    private Logger logger = LoggerFactory.getLogger("SendSms");

    @Override
    public boolean sendMail(UserInfo user) {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            logger.error(e.getMessage());
        }
        System.out.println("发送短信息给：" + user.getName() + "到【" + user.getPhone() + "】");
        return true;
    }

}
